<el-table-column label="操作" width="200">
  <template #default="scope">
    <el-button type="primary" link @click="handleView(scope.row)">
      查看
    </el-button>
    <el-button type="primary" link @click="handleEdit(scope.row)">
      编辑
    </el-button>
    <el-button type="danger" link @click="handleDelete(scope.row)">
      删除
    </el-button>
  </template>
</el-table-column>

<script>
export default {
  methods: {
    handleView(row) {
      this.$router.push(`/car/${row.carId}`)
    },
  }
}
</script> 